package com.situ.mall.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.situ.mall.entity.Product;

public interface ProductMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Product record);

    int insertSelective(Product record);

    Product selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Product record);

    int updateByPrimaryKey(Product record);
    
    List<Product> selectAll();

	int getTotalCount(Product product);

	List<Product> selectByPage(@Param(value = "offset")int offset, 
			@Param(value = "limit")Integer limit,
			@Param(value = "product")Product product);

	List<Product> selectByName(String name);
}